package com.ssm.util;
import com.ssm.service.StudentService;
import com.ssm.service.TeacherService;
import com.ssm.service.impl.TeacherServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test {
    @org.junit.Test
    public void test() {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("aop.xml");
        TeacherServiceImpl teacherServiceImpl =
                (TeacherServiceImpl)context.getBean("teacherServiceImpl");
        teacherServiceImpl.delete(1);
           }
}
